html {
    cursor: url(/static/images/alternate.png) 16 16, auto;
}

a,
button,
input {
    cursor: url(/static/images/link.png) 16 16, pointer;
}

p,
span,
h2,
label {
    cursor: url(/static/images/text.png) 16 16, text;
}

body {
    margin: 0;
    padding: 0;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url(/static/images/bg.webp) no-repeat 100% 100%;
    background-size: cover;
    background-attachment: fixed;
    -webkit-tap-highlight-color: transparent;
}

.login-container {
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / 20%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(120deg, rgb(255 255 255 / 20%) 0, rgb(170 170 170 / 20%) 100%);
    -webkit-animation: fadeIn 0.5s ease-in-out forwards;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: calc(100% - 20px);
    padding: 10px;
    outline: 0;
    border: 1px solid #aaa;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 16px;
    transition: 0.2s;
    border: 1px solid rgb(255 255 255 / 20%);
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

button:hover {
    background-color: rgb(0 0 0 / 20%);
    color: #ddd;
}

.reset-password {
    text-align: right;
}

.reset-password a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.reset-password a:hover {
    color: #f95a5a;
}
/* 消息弹窗样式 */
.msg {
    position: fixed;
    top: 20px;
    right: 15px;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    z-index: 9999;
    border: 1px solid rgb(255 255 255 / 20%);
    -webkit-animation: fadeInTop .6s forwards;
            animation: fadeInTop .6s forwards;
}

/* 背景颜色样式 */
.msg-red { background-color: rgba(166, 19, 19, 0.7); }
.msg-green { background-color: rgba(0, 126, 0, 0.7); }
/* 淡出动画样式 */
.msg-right { -webkit-animation: fadeOutRight .8s forwards; animation: fadeOutRight .8s forwards; }

/* 动画效果 */
@-webkit-keyframes fadeInTop {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInTop {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeOutRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

@keyframes fadeOutRight {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}